<template>
	<view class="list-cell" style="padding: 6rpx 16rpx;border-bottom: 1rpx solid #f3f3f3;">
		<image :src="data.to_avatar" style="width: 80rpx;height: 80rpx;border-radius: 8rpx;"
			mode=""></image>
		<view class="info-view">
			<view style="width: 100%;display: flex;align-items: center;justify-content: space-between;">
				<view class="">
					{{data.to_name}}
				</view>
				<view style="padding-right: 16rpx;color:#666;font-size: 28rpx;">
					{{getStatusInfo(data.status)}}
				</view>
			</view>
			<view style="font-size: 26rpx;color: #666;width: 100%;display: flex;align-items: center;justify-content: space-between;">
				<view class="u-line-1">
					我：{{data.message}}
				</view>
				<view style="padding-right: 16rpx;color:#666;font-size: 28rpx;">
					<image src="/static/images/icon_right_top.png" style="width: 40rpx;height: 40rpx;" mode=""></image>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		name:"myapplyitem",
		data(){
			return {}
		},
		props:{
			data:{
				type:Object,
				default:()=>{
					return {}
				}
			}
		},
		methods:{
			getStatusInfo:function(status){
				if(status == 0){
					return "待验证"
				}else if(status == 1){
					return "已添加"
				}else{
					return "已拒绝"
				}
			}
		}
	}
</script>

<style scoped>
	.content {
		display: flex;
		flex-direction: column;
		align-items: center;
		background: #f3f3f3;
		height: 100vh;
	}
	.list-cell {
		display: flex;
		box-sizing: border-box;
		width: 100%;
		padding: 0px 24rpx;
		overflow: hidden;
		color: #323233;
		font-size: 14px;
		line-height: 24px;
		background-color: #fff;
		align-items: center;
	}
	.name-view {
		margin-left: 16rpx;
		flex: 1;
		overflow: hidden;
		color: #323233;
		font-size: 14px;
		line-height: 24px;
		padding: 10px 0px;
	}
	.info-view {
		margin-left: 16rpx;
		flex: 1;
		overflow: hidden;
		color: #323233;
		font-size: 14px;
		line-height: 24px;
		padding: 1rpx 0px;
		display: flex;
		flex-direction: column;
	}
</style>